<?php

namespace Ifmia\AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Ifmia\AppBundle\Entity\Formation
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Ifmia\AppBundle\Entity\FormationRepository")
 */
class Formation
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string $intituleFormation
     *
     * @ORM\Column(name="intituleFormation", type="string", length=150)
     */
    private $intituleFormation;

    /**
     * @var integer $nombreMaxInscrit
     *
     * @ORM\Column(name="nombreMaxInscrit", type="integer")
     */
    private $nombreMaxInscrit;
	
    
    /**
     * @var string $codeFormation
     *
     * @ORM\Column(name="codeFormation", type="string", length=150)
     */
    private $codeFormation;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set intituleFormation
     *
     * @param string $intituleFormation
     */
    public function setIntituleFormation($intituleFormation)
    {
        $this->intituleFormation = $intituleFormation;
    }

    /**
     * Get intituleFormation
     *
     * @return string 
     */
    public function getIntituleFormation()
    {
        return $this->intituleFormation;
    }

    /**
     * Set nombreMaxInscrit
     *
     * @param integer $nombreMaxInscrit
     */
    public function setNombreMaxInscrit($nombreMaxInscrit)
    {
        $this->nombreMaxInscrit = $nombreMaxInscrit;
    }

    /**
     * Get nombreMaxInscrit
     *
     * @return integer 
     */
    public function getNombreMaxInscrit()
    {
        return $this->nombreMaxInscrit;
    }
    
    public function __toString() {
    	return $this->intituleFormation;
    
    }
    
    
    

    /**
     * Set codeFormation
     *
     * @param string $codeFormation
     */
    public function setCodeFormation($codeFormation)
    {
        $this->codeFormation = $codeFormation;
    }

    /**
     * Get codeFormation
     *
     * @return string 
     */
    public function getCodeFormation()
    {
        return $this->codeFormation;
    }
}